package com.gzx.plugin.tjzy.feign.file.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;

/**
 * @author zjt
 * @description
 * @since 2024/10/18 15:11
 */
public interface FileFeignService {

    /**
     * 获取文件
     * @param fileName
     * @return
     */
    File getFile(String fileName);

    /**
     * 上传文件，不带时间戳后缀
     * @param file
     * @return
     * @throws IOException
     */
    public String uploadNoTimeSuffix(MultipartFile file) throws IOException;

}
